package com.arpa.wms.domain.dto;

import com.arpa.wms.domain.entity.BasicEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 订单处理页面，商品查询、爆品查询使用的dto
 * </p>
 *
 * @author xuyang
 * @since 2021-04-10
 */
@Data
@ApiModel(value="WaveQueryGoodsDTO对象", description="订单处理页面，商品查询、爆品查询使用的dto")
public class WaveQueryGoodsDTO extends BasicEntity {

    @ApiModelProperty(value = "仓库code")
    private String warehouseCode;

    @ApiModelProperty(value = "所属组织")
    private String groupCode;

    @ApiModelProperty(value = "当前仓库下绑定的货主集合")
    private List<String> shipmentCodes;

    @ApiModelProperty(value = "授权该账号的仓库集合")
    private List<String> warehouseCodes;

    @ApiModelProperty(value = "入驻商")
    private String shipmentCode;

    @ApiModelProperty(value = "入驻商")
    private String shipmentName;

    @ApiModelProperty(value = "商品code")
    private String goodsCode;

    @ApiModelProperty(value = "商品名称")
    private String goodsName;

    @ApiModelProperty(value = "商品编码")
    private String goodCode;

    @ApiModelProperty(value = "商品条码")
    private String goodsBarCode;

    @ApiModelProperty(value = "商品单位名称")
    private String unitName;

    @ApiModelProperty(value = "总数量")
    private BigDecimal totalNum;

    @ApiModelProperty(value = "商品总数量下限")
    private BigDecimal goodsTotalNumStart;

    @ApiModelProperty(value = "商品总数量上限")
    private BigDecimal goodsTotalNumEnd;

    @ApiModelProperty(value = "爆品商品件数")
    private String quantity;

    @ApiModelProperty(value = "订单数量下限")
    private BigDecimal deliveryTotalNumStart;

    @ApiModelProperty(value = "订单数量上限")
    private BigDecimal deliveryTotalNumEnd;

    @ApiModelProperty(value = "接收时间下限")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtCreatedStart;

    @ApiModelProperty(value = "接收时间上限")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtCreatedEnd;

    @ApiModelProperty(value = "第几页")
    private Integer pageNum = 1;

    @ApiModelProperty(value = "每页条数")
    private Integer pageSize = 10;

}
